import request from '@/utils/request'

// 查询定时发送消息记录列表
export function listRegularMsg(query) {
  return request({
    url: '/system/regularMsg/list',
    method: 'get',
    params: query
  })
}

// 查询定时发送消息记录详细
export function getRegularMsg(id) {
  return request({
    url: '/system/regularMsg/' + id,
    method: 'get'
  })
}

// 新增定时发送消息记录
export function addRegularMsg(data) {
  return request({
    url: '/system/regularMsg',
    method: 'post',
    data: data
  })
}

// 修改定时发送消息记录
export function updateRegularMsg(data) {
  return request({
    url: '/system/regularMsg',
    method: 'put',
    data: data
  })
}

// 删除定时发送消息记录
export function delRegularMsg(id) {
  return request({
    url: '/system/regularMsg/' + id,
    method: 'delete'
  })
}
